package cn.kgc.mapper;


import cn.kgc.entity.Item;
import cn.kgc.pojo.ItemQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ItemMapper {
    public  List<Item> getAllItem();
    public  Item getItemById(Integer id);
    public  void addItem(Item item);
    public  void updateItem(Item item);
    public  void deleteItemById(Integer id);

    public  List<Item> getItemList(ItemQuery itemQuery);

    public  Integer countItem();
    public  Integer countPid(Long pid);

}
